package com.my.structuraltype.proxy.simple;

import java.io.Console;

public class People implements ITalk {
	
	private int age;
	private String name;

	public People(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
	
	@Override
	public void talk(String msg) {
		System.out.println(msg + "!你好,我是" + name + "，我年龄是" + age);
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
